package cn.lbd.auth.exception;

import cn.lbd.auth.core.HttpResult;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * 异常处理器，底层基于interceptor来完成
 */
/*@RestControllerAdvice
public class HandlerControllerAdvice {

    @ExceptionHandler(AccessDeniedException.class)
    public HttpResult accessDeniedHandle(){
        System.out.println("产生AccessDeniedException");
        return HttpResult.error(403,"您的权限不足，请联系管理员");
    }
}*/
